using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmTrainingType")]
    public class TrainingType
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "TrainingTypeId", ResourceType = typeof(Resources.TrainingTypesResource))]
        public int TrainingTypeId { get; set; }

		[DataMember, Display(Name = "TrainingTypeDescr", ResourceType = typeof(Resources.TrainingTypesResource))]
        public string TrainingTypeDescr { get; set; }

		[ForeignKey("TrainingCat")]
		[DataMember, Display(Name = "TrainingCatId", ResourceType = typeof(Resources.TrainingTypesResource))]
        public int TrainingCatId { get; set; }

		[DataMember, Display(Name = "internal1", ResourceType = typeof(Resources.TrainingTypesResource))]
        public Nullable<decimal> @internal { get; set; }

		[DataMember, Display(Name = "Local", ResourceType = typeof(Resources.TrainingTypesResource))]
        public Nullable<decimal> Local { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.TrainingTypesResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.TrainingTypesResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.TrainingTypesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.TrainingTypesResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.TrainingTypesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual HRM.TrainingTypeCategory TrainingCat { get; set; }

    }
}